package com.regex.web.entity.community;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.regex.web.entity.AutoIdBaseEntity;

/**
 * <p>
 * 
 * </p>
 *
 * @author mhy
 * @since 2019-12-31
 */
@TableName("t_community_type")
public class CommunityTypeDTO extends AutoIdBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 小区id
     */
    @TableField("village_id")
    private Long villageId;

    /**
     * 详情
     */
    @TableField("detial")
    private String detial;

    /**
     * 类型
     */
    @TableField("type")
    private String type;

    /**
     * 图标
     */
    @TableField("icon_url")
    private String iconUrl;

    /**
     * 类型名称
     */
    @TableField("name")
    private String name;

    /**
     * 排序
     */
    @TableField("sort")
    private Integer sort;
    
    @TableField(exist = false)
    private String villageName; // 小区名称
    
    public String getVillageName() {
        return villageName;
    }

    public void setVillageName(String villageName) {
        this.villageName = villageName;
    }

    public Long getVillageId() {
        return villageId;
    }

    public void setVillageId(Long villageId) {
        this.villageId = villageId;
    }
    
    public String getDetial() {
        return detial;
    }

    public void setDetial(String detial) {
        this.detial = detial;
    }
    
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    
    public String getIconUrl() {
        return iconUrl;
    }

    public void setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
    }
    
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    protected Serializable pkVal() {
        return super.pkVal();
    }

    @Override
    public String toString() {
        return "CommunityTypeDTO{" +
        "villageId=" + villageId +
        ", detial=" + detial +
        ", type=" + type +
        ", iconUrl=" + iconUrl +
        ", name=" + name +
        ", sort=" + sort +
        "}";
    }
}
